package com.cw.spider.controller;

import cn.wanghaomiao.seimi.spring.common.CrawlerCache;
import cn.wanghaomiao.seimi.struct.CrawlerModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 描述:
 *
 * @author withqianqian@163.com
 * @create 2020-08-27 10:52
 */
@RestController
@RequestMapping(value = "/seimi")
public class Index {
    @GetMapping("jxtv")
    public String getJXTV(){
        CrawlerModel model = CrawlerCache.getCrawlerModel("jx_basic");
        model.startRequest();
        return model.queueInfo();
    }
    @GetMapping("xinhua")
    public String getXinHua(){
        CrawlerModel model = CrawlerCache.getCrawlerModel("xin_hua_basic");
        model.startRequest();
        return model.queueInfo();
    }


}
